package com.sjg.sys.dao;

import com.sjg.sys.entity.SysPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.sjg.sys.entity.SysUser;

@Mapper
public interface SysUserDao {
    int insert(@Param("pojo") SysUser pojo);

    int insertSelective(@Param("pojo") SysUser pojo);

    int insertList(@Param("pojos") List<SysUser> pojo);

    int update(@Param("pojo") SysUser pojo);

    int delete(@Param("id")Long id);

    SysUser findbyId(@Param("id")Long id);

    SysUser findbyLoginNameAndLocked(@Param("loginName") String longinName,@Param("locked") Integer locked);

    List<SysUser> findbyUser(@Param("pojo") SysUser pojo);

    List<SysUser> findbyUserPage(SysPage<SysUser> page);

    int findRowCountById();



}
